<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
	var ws = new WebSocket('ws://127.0.0.1:8800');
	ws.onopen = function(e) {
		console.log('open', e);
//		var str = 'pppppp';
////		for(var i=0; i<10000; i++) {
////			str += '1234567890';
////		}
//
//		ws.send(str);
	};
	ws.onclose = function(e) {
		console.log('close', e);
	};
	ws.onmessage = function(e) {
		console.log('message', e);
	};
	ws.onerror = function(e) {
		console.log('error', e);
	};
</script>
</body>
</html>